﻿<UserControl x:Class="Skauler.Views.AddStudent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="600">
    <UserControl.Resources>
        <Style TargetType="{x:Type TextBlock}">
            <Setter Property="Margin" Value="5"/>
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="Margin" Value="5"/>
        </Style>
        <Style TargetType="{x:Type DatePicker}">
            <Setter Property="Margin" Value="5"/>
        </Style>
        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="Margin" Value="5"/>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition MaxHeight="50"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Text="Student Name"/>
        <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding FirstName}"/>
        <TextBox Grid.Row="0" Grid.Column="2" Text="{Binding MiddleName}"/>
        <TextBox Grid.Row="0" Grid.Column="3" Text="{Binding LastName}"/>
        
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Date of Birth"/>
        <DatePicker Grid.Row="1" Grid.Column="1" Text="{Binding DateOfBirth}"/>
        
        <TextBlock Grid.Row="2" Grid.Column="0" Text="Gender"/>
        <ComboBox Grid.Row="2" Grid.Column="1" ></ComboBox>
        
        <TextBlock Grid.Row="3" Grid.Column="0" Text="Parent's / Guardian's Name"/>
        <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding GuardiansName}"/>
        
        <TextBlock Grid.Row="4" Grid.Column="0" Text="Address"/>
        <TextBox Grid.Row="4" Grid.Column="1" Grid.RowSpan="2" MaxLines="4" MaxLength="400" Text="{Binding StreetAddress}"/>
        
        <TextBlock Grid.Row="6" Grid.Column="0" Text="City"/>
        <TextBox Grid.Row="6" Grid.Column="1" Text="{Binding City}"/>
        
        <TextBlock Grid.Row="6" Grid.Column="2" Text="PIN Code"/>
        <TextBox Grid.Row="6" Grid.Column="3"   Text="{Binding PinCode}"/>
        
        <TextBlock Grid.Row="8" Grid.Column="0" Text="Landline Number"/>
        <TextBox Grid.Row="8" Grid.Column="1" Text="{Binding ParentsFixedPhoneNumber}"/>
        
        <TextBlock Grid.Row="8" Grid.Column="2" Text="Cellphone Number"/>
        <TextBox Grid.Row="8" Grid.Column="3" Text="{Binding ParentsCellPhoneNumber}"/>
        
        <TextBlock Grid.Row="10" Grid.Column="0" Text="Date of Admission"/>
        <DatePicker Grid.Row="10" Grid.Column="1" Text="{Binding DateOfAdmission}"/>
        <TextBlock Grid.Row="10" Grid.Column="2" Text="Admission Number"/>
        <TextBox Grid.Row="10" Grid.Column="3" Text="{Binding AdmissionNumber}"/>
        
        <TextBlock Grid.Row="11" Grid.Column="0" Text="Blood Group"/>
        <ComboBox Grid.Row="11" Grid.Column="1"/>
        
        <TextBlock Grid.Row="12" Grid.Column="0" Text="Student Category"/>
        <ComboBox Grid.Row="12" Grid.Column="1"/>

        <TextBlock Grid.Row="13" Grid.Column="0" Text="Mother Tongue"/>
        <TextBox Grid.Row="13" Grid.Column="1" Text="{Binding MotherTounge}"/>
        
        <TextBlock Grid.Row="14" Grid.Column="0" Text="Nationality"/>
        <TextBox Grid.Row="14" Grid.Column="1" Text="{Binding Nationality}"/>
        
        <TextBlock Grid.Row="15" Grid.Column="0" Text="Place of Birth"/>
        <TextBox Grid.Row="15" Grid.Column="1" Text="{Binding BirthPlace}"/>


    </Grid>
</UserControl>
